package jiggle;

public class HybridVertexVertexRepulsionLaw extends VertexVertexRepulsionLaw {

	public HybridVertexVertexRepulsionLaw (Graph g, double k) {
		super (g, k);
	}

	@Override
    public double pairwiseWeights(double pref, double curr) {
		if (curr < pref) return square(pref/curr)*-1; else return cube (pref/curr)*-1;
	}

}